package edu.zut.mapper;

import edu.zut.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface UserMapper {

    @Select("select * from ay_user where name=#{name} and password = #{psw}")
    User selectByNameAndPsw(String name, String psw);


}
